<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title>
<?php bloginfo('name'); ?>
<?php wp_title(); ?>
</title>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/images/favicon.ico" />
<?php if (function_exists('wp_enqueue_script') && function_exists('is_singular')) : ?>
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php endif; ?>
<?php wp_head(); ?>
<script language="javascript" type="text/javascript" src="<?php bloginfo('template_url'); ?>/javascripts/ajaxtabs.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/javascripts/menu.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/javascripts/jquery.min.js"></script>
<!-- 4 portal-widget-->
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/javascripts/widget/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/javascripts/widget/widget.js" ></script>
<script type="text/javascript"> 
	$(document).ready(function(){
		$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 7000, true);
	});
</script>

<!--[if lt IE 7]>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/javascripts/unitpngfix.js"></script>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/ie.css" />
<![endif]-->
</head>
<body>
	<div id="header">
		<div class="left">
			<?php if (get_theme_mod('logo') == 'textlogo') { ?>
				<span class="textlogo"><a href="<?php bloginfo('siteurl'); ?>"><?php bloginfo('name'); ?></a></span>
			<?php } else { ?>
				<a class="imagelogo" href="<?php bloginfo('siteurl'); ?>"></a>
			<?php } ?>
		</div> <!--end: left-->
		<div class="right">
			<?php include('ads/header468x60ad.php'); ?>
		</div> <!--end: right-->
	</div> <!--end: header-->
<div id="headline">
	<div class="left">
		Subscribe:<span class="rss"><?php if (get_theme_mod('feed') == 'feedburner') { ?><a href="<?php bloginfo('comments_rss2_url');?>" title="Subscribe to RSS feed">Posts</a><?php } else { ?><a href="<?php bloginfo('rss2_url'); ?>" title="Subscribe to RSS feed">Posts</a><?php } ?></span>
		<span class="rss"><a href="<?php bloginfo('comments_rss2_url');?>" title="Subscribe to Comments feed">Comments</a></span>
	</div> <!--end: left-->
	<div class="right">
		<div class="mlmenu horizontal fade inaccesible">
			<ul>
				<?php wp_list_pages('title_li='); ?>
				<li>
				<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
				  <div id="search">
				    <input class="searchinput" type="text" value="Search this site..." onclick="this.value='';" name="s" id="s" />
				    <input class="searchsubmit" type="submit" value="GO"/>
				  </div>
				</form>
				</li>
			</ul>	
		</div> <!--end: menu-->
	</div> <!--end: right-->
	<div class="clear"></div>
</div> <!--headline-->
<div id="wrapper">
